﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Meqs.Entity
{
    [Serializable]
    public class ExamSubjecyEducation2
    {
        public ExamSubjecyEducation2()
        {
            m_RID = 0;
            m_SubjectID = 0;

        }

        #region RID

        private int m_RID;

        public int RID
        {
            get { return m_RID; }
            set { m_RID = value; }
        }

        #endregion

        #region ExamID

        private int m_ExamID;

        public int ExamID
        {
            get { return m_ExamID; }
            set { m_ExamID = value; }
        }

        #endregion

        #region SubjectID

        private int m_SubjectID;

        public int SubjectID
        {
            get { return m_SubjectID; }
            set { m_SubjectID = value; }
        }

        #endregion

        #region SubjectName

        private string m_SubjectName;

        public string SubjectName
        {
            get { return m_SubjectName; }
            set { m_SubjectName = value; }
        }

        #endregion

        private DateTime dateTime;

        public DateTime CreateTime
        {
            get { return dateTime; }
            set { dateTime = value; }
        }
        #region Rewrite Equals and HashCode

        /// <summary>
        /// 
        /// </summary>
        public override bool Equals(object obj)
        {
            if (this == obj) return true;
            if ((obj == null) || (obj.GetType() != GetType())) return false;
            ExamSubjecyEducation2 castObj = (ExamSubjecyEducation2)obj;
            return (castObj != null)
 && m_RID == castObj.RID;
        }

        /// <summary>
        /// 用唯一值实现GetHashCode
        /// </summary>
        public override int GetHashCode()
        {
            int hash = 25;
            hash = hash * 25
 * m_RID.GetHashCode(); return hash;
        }

        #endregion


    }
}
